home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CDPD Public Domain Collection for CDTV 4
/
CDPD_IV.bin
/
e
/
mailinglists
/
amigae.0793july.archive
/
000099_crash!quasar.h…quasar!ekrieger_Wed, 28 Jul 93 21:47:39 PST.msg
< prev
next >
Wrap
Internet Message Format
|
1994-05-26
|
3KB
Received: by bkhouse.cts.com (V1.16/Amiga)
id AA00000; Wed, 28 Jul 93 21:47:39 PST
Received: from xs4all.hacktic.nl by crash.cts.com with smtp
(Smail3.1.28.1 #15) id m0oLO5J-0000RVC; Wed, 28 Jul 93 19:51 PDT
Received: from quasar.UUCP by xs4all.hacktic.nl with UUCP id AA11310
(5.65c/IDA-1.4.4 for bkhouse.cts.com!amigae); Thu, 29 Jul 1993 04:27:10 +0200
Received: by utopia.hacktic.nl (1.65/waf)
via UUCP; Thu, 29 Jul 93 00:20:25 GMT
for bkhouse.cts.com!amigae
Received: by quasar.hacktic.nl (V1.16/Amiga)
id AA008v8; Wed, 28 Jul 93 20:23:24 GMT
Date: Wed, 28 Jul 93 20:23:24 GMT
Message-Id: <9307282023.AA008v7@quasar.hacktic.nl>
X-Mailer: //\\miga Electronic Mail (AmiElm 1.19)
Organization: Private, Delft [NL]
Reply-To: ekrieger@quasar.hacktic.nl
From: ekrieger@quasar.hacktic.nl (Eric Krieger)
To: amigae@bkhouse.cts.com
Subject: How to code a BusyPointer?
I'm just started with Amiga E V2.1b, and i have some questions.
Could someone give me some hints how to use the function SetPointer()
(from the intuition.library), especially with the Array of data for
the BusyPointer?
I'm trying to "port" (ahum :) the example on page 275 of the
RKRM-Libraries, with the waitPointer, but i haven't succeeded yet.
In short, this is the important part of the C-code:
/* Start of Part */
UWORD __chip waitPointer[] = {
0x0000, 0x0000, /* Reserved, must be NULL */
0x0400, 0x07c0, 0x0000, 0x07c0,
0x0100, 0x0380, 0x0000, 0x07e0,
0x07c0, 0x1ff8, 0x1ff0, 0x3fec,
0x3ff8, 0x7fde, 0x3ff8, 0x7fbe,
0x7ffc, 0xff7f, 0x7efc, 0xffff,
0x7ffc, 0xffff, 0x3ff8, 0x7ffe,
0x3ff8, 0x7ffe, 0x1ff0, 0x3ffc,
0x07c0, 0x1ff8, 0x0000, 0x07e0,
0x0000, 0x0000, /* Reserved, must be NULL */
};
void SetWaitPointer (struct Window *window)
{
SetPointer(window, waitPointer, 16L, 16L, -6L, 0);
}
void processWaiting (struct Window *window)
{
Delay(100);
SetWaitPointer(window); /* Call Busy-Pointer */
Delay(400);
ClearPointer(window); /* Restore normal Pointer */
}
void main(int argc, char **argv)
{
struct Window *win;
if (IntuitionBase = OpenLibrary("intuition.library", 37L)) {
if (win = OpenWindowTags(NULL,
WA_Left, 20,
WA_Top, 10,
WA_Width, 300,
WA_Height, 90,
WA_MaxWidth, ~0,
WA_MaxHeight, ~0,
TAG_DONE) )
{
processWaiting(win);
CloseWindow(win); /* Close this Window */
}
CloseLibrary(IntuitionBase);
}
}
/* End of Part */
Any example(s)/hint(s) will be appreciated to make this a usable E-source!
Thanks in advance!
--
Q U A S A R : Last Point of Endless Time
_____________ __________________________________________________
/ Best regards,\ / The Netherlands (Europe) FIDO: 2:285/1.10 \
\ Eric Krieger / \ ekrieger@quasar.hacktic.nl AmigaNET: 39:102/1.21/
~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~